#ifndef __CHAT_H__
#define __CHAT_H__

#include "friend.h"
#include <QList>

class Chat {
public:
	Chat();
	Chat(int id,const QList<Friend*> &friends);
	~Chat();
	int getId();
	void setId(int id);
	QList<Friend*> getFriends();
	void addFriend(Friend *friend_);
	void removeFriend(Friend* friend_);
	bool containsFriend(Friend* friend_);

	template<class Archive> void serialize(Archive& ar, const unsigned int /* version */) {
		ar & id;
		ar & friends;
	}
private:
	int id;
	QList<Friend*> friends;
};

#endif // __CHAT_H__
